import request from '@/utils/request';

export const getList = (params) => request.get('/api/siteWork/list', params);

// 质量巡检登录
// export const qualityLogin = (data) => request.post('/reportUser/login', data);

// 补卡打印列表数据
// export const getPrintData = (data) => request.post('/reportTaskDetail/getListPage', data);

// 系统配置
// 获取设备下拉信息
export const getDeviceList = (params) => request.get('/reportDeviceBind/getDeviceMsgByMes', params);
// 绑定设备回显接口
export const getBindDeviceMsg = (params) => request.get('/reportDeviceBind/getBindDeviceMsg', params);
// 解除绑定
export const relieveDeviceBind = (data) => request.post('/reportDeviceBind/relieveDeviceBind', data, {
  desc: '解除绑定成功',
  loadingOption: true,
});
// 确认绑定
export const bindDevice = (data) => request.post('/reportDeviceBind/bindDevice', data);
// 告警信息接口
export const warnMessage = (data) => request.post('/productIndex/message', data);
